<%@page import="status.StatusVo"%>
<%@page import="status.Status"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>게시판 수정 폼</title>
<script>
function getId(id) {return document.getElementById(id);}
function del(serial) {
	var f = confirm("정말 삭제 하시겠습니까?");
	if(f){
		location.href = 'index.jsp?inc_contents=./status/md_delete.jsp&serial='+serial;
	}else{
		alert("삭제가 취소되었습니다.");
	}
}

</script>
<style type="text/css">
    @import url(http://fonts.googleapis.com/earlyaccess/hanna.css); /* "Hanna" */
    @import url(http://fonts.googleapis.com/earlyaccess/kopubbatang.css); /* "KoPub Batang" */
	.ting{
              height :30px;
              font-size: 18px;  
              font-family: "KoPub Batang";
              padding-top: 5px;
         }
	
	
#g{
text-align: center;
width: 663px;
height : 70px;
font-size:x-large;
color : #0fce84;
}         

#sm{
 border: 1px solid;
 float: left;
}
#ssm{
float: left;
}	
#mm{
float: left;

}
#je{
border : 1px solid #aaaaaa;
background-color: #faa719;
margin-top:3px;
margin-left:2px;
margin-right: 2px;
width: 100px;
float:left;
}
#je2{
border : 1px solid #aaaaaa;
background-color: #faa719;
margin-top:3px;
margin-left:2px;
margin-right: 2px;
width: 100px;
float:left;
}
#te{

}
#main{
   width:990px;
   height:700px;
}
#contents{
   text-align:center; 
   width:600px;
   height:700px;
   margin-left:200px;
   margin-top:100px;

}  
</style>

</head>
<body>
<jsp:useBean id="vo" class='status.StatusVo'></jsp:useBean>
<jsp:setProperty property="*" name="vo"/>
<% 
//아이디 정보 가져오는 것(로그인 확인하는 것)
String sessionID=(String)session.getAttribute("mid");
if(sessionID==null)sessionID="notUser";
%>


<%
	Status g = new Status();
g.setVo(vo);
StatusVo gv = g.view();
%>


	<form name="frm" action="" method="post"  >
    <div id='main'>
       <div id='contents'>
				<div >
					<div id='g'>
						<h1 style='font-family: "Hanna"'>게시판 상세보기</h1>
					</div>
					<div id='sm'>
						<div id='ssm'>
							<div style='font-size: 20px;' id='je' align="center">제목</div>
							<input name='subject' value='<%=gv.getSubject()%>' style='font-size: 20px; width: 400px;' type="text" readonly/>
						</div>
						<div id='mm'>
							<div  style='font-size: 20px;' id='je2' align="center" >작성자</div>
							<input name="mid" value='<%=gv.getMid()%>' style='font-size: 20px; width: 200px;' type="text" readonly />
						</div>
						<div id='mm'>
							<div  style='font-size: 20px;' id='je2' align="center" >작성일자</div>
							<input name="mdate" value='<%=gv.getMdate()%>' style='font-size: 20px; width: 300px;' type="text" readonly />
						</div>
						
						<div id='mm'>
							<div  style='font-size: 20px;' id='je2' align="center" >회사명</div>
							<input name ="company" value='<%=gv.getCompany()%>' style='font-size: 20px; width: 300px;' type="text" readonly />
						</div>
						
						<div id='mm'>
				
						<div>
							<textarea readonly style='font-size: 20px; width:585px; height:300px; border: 1px solid; float:left; margin-left: 3px; margin-top: 3px;'' name='content' rows="20" cols="55"><%=gv.getContent() %></textarea>
						</div>
					</div>
				</div>
				<%if(sessionID.equals("admin")){ %>
				
		               　<a href='index.jsp?inc_contents=./status/status_md.jsp&serial=<%=gv.getSerial()%>'><input style='font-size: 20px; width: 100px;' type="button" value="수정" />　
	   <%} %>
		<a href='index.jsp?inc_contents=./status/status.jsp'><input style='font-size: 20px; width: 100px;' type="button" value="목록" /></a>
	</div>
	</div>
	</form>
</body>
</html>

